      <ul class="fly-panel fly-list">
             <?php foreach ($tips as $tip) { ?>
                
            <?php if (in_array('1', explode(',', $tip['tip']))) {?>
             <li class="fly-list-li">
                    <a href="{:U('home/u/main',array('id'=>$tip['uid']))}" class="fly-list-avatar">
                        <img src="__ROOT__/<?php echo $tip['face'] ?>" alt="贤心">
                    </a>

                    <h2 class="fly-tip">
                        <a href="{:U('home/jie/index',array('id'=>$tip['id']))}">
                           <?php echo $tip['title'] ?>
                        </a>
                        
                            
                      
                        <span class="fly-tip-stick">
                            置顶
                        </span>
                         <?php if (in_array('2', explode(',', $tip['tip']))) {?>
                        <span class="fly-tip-jing">
                            精帖
                        </span>
                        <?php } ?>

                        
                       
                    </h2>
                    <p>
                        <span>
                            <a href="{:U('home/u/main',array('id'=>$tip['uid']))}">
                               <?php echo $tip['nickname'] ?>
                            </a>
                        </span>
                        <span>
                            <?php echo CT($tip['create_time']) ?>
                        </span>
                        <span>
                           <?php echo $tip['cname'] ?>
                        </span>
                        <span class="fly-list-hint">
                            <i class="iconfont" title="回答">
                                
                            </i>
                            <?php echo $tip['answer_num'] ?>
                            <i class="iconfont" title="人气">
                                
                            </i>
                            <?php echo $tip['view_num'] ?>
                        </span>
                    </p>
                </li>
                <?php } ?>
                <?php } ?>
          <?php foreach ($questions as $v) { ?>
                <li class="fly-list-li">
                    <a href="{:U('home/u/main',array('id'=>$v['uid']))}" class="fly-list-avatar">
                        <img src="__ROOT__/<?php echo $v['face'] ?>"
                        alt="冬天">
                    </a>
                    <h2 class="fly-tip">
                        <a href="{:U('home/jie/index',array('id'=>$v['id']))}">
                           <?php echo htmlspecialchars_decode($v['title']) ?>
                        </a>
                         <?php if (in_array('2', explode(',', $v['tip']))) {?>
                        <span class="fly-tip-jing">
                            精帖
                        </span>
                        <?php } ?>
                    </h2>
                    <p>
                        <span>
                            <a href="{:U('home/u/main',array('id'=>$tip['uid']))}">
                                <?php echo $v['nickname']; ?>
                            </a>
                        </span>
                        <span>
                           <?php  echo CT($v['create_time']) ?>
                        </span>
                        <span>
                            layui
                        </span>
                        <span class="fly-list-hint">
                            <i class="iconfont" title="回答">
                                
                            </i>
                           <?php echo $v['answer_num'] ?>
                            <i class="iconfont" title="人气">
                                
                            </i>
                            <?php echo $v['view_num'] ?>
                        </span>
                    </p>
                </li>
            <?php } ?>



      <style type="text/css">
                .laypage-main{
                    border: 0px solid #000;
                }
                .laypage-main div{
                    border: 0px solid #000;
                }
                .laypage-main a{
                    margin-left: 10px;
                    border: 1px solid #009E94;
                }

                .laypage-main span{
                    margin-left: 10px;
                    border: 1px solid #009E94;
                    background: #009E94 url() 0 0 no-repeat;
                    color: #fff;
                }

            </style>
            <div style="text-align: center">
                <div class="laypage-main">
                    <?php echo $page ?>
                </div>
            </div>
        </div>
    </div>